/**
 * Created by Administrator on 2017/2/2 0002.
 */
import React from 'react'
import ReactDOM from 'react-dom'
import {Router,Route,Link, hashHistory} from 'react-router'
import HelloWorld from './HelloWorld/HelloWorld.js'
import GalleryByReactApp from './entry-gallery.js'
import App from './HelloWorld/App.js'
// class ElloWorld extends React.Component{
//     render(){
//         return (
//             <div>
//                 <Link to="/">Helloworld</Link>
//             </div>
//         )
//     }
// // }
// class Gallery extends React.Component{
//     render(){
//         return (
//             <div>
//                 <Link to="/">Gallery</Link>
//             </div>
//         )
//     }
// }
ReactDOM.render((
    <Router history={hashHistory}>
        <Route path="/" component={App}>
            <Route path="/helloworld" component={HelloWorld}/>
            <Route path="/gallery" component={GalleryByReactApp}/>
        </Route>
    </Router>
    ),document.getElementById('content')
)